<?php
/*
    My College Link - verify login page, checks login user/pass and redirects to appropriate page.
    Dan Newman

    verifylogin.php
    8/23/2011
    
    uses loginDBFunctions.php
 */



session_start();

include_once('loginDBFunctions.php');
$username = $_POST['username'];
$password = $_POST['pass'];
$redirect = $_POST['redirect'];
$success = logInUser($username, $password);
if($success){
	header("Location: " . $redirect);
}
else{
	header("Location: login.php");
	exit();
}
?>